//
//  UIView+BLFrame.m
//  BLExtension
//
//  Created by huangbolun on 2018/1/11.
//  Copyright © 2018年 huangbolun. All rights reserved.
//

#import "UIView+BLFrame.h"

@implementation UIView (BLFrame)

//@property (nonatomic, assign) CGFloat bl_x;
//@property (nonatomic, assign) CGFloat bl_y;
//@property (nonatomic, assign) CGFloat bl_w;
//@property (nonatomic, assign) CGFloat bl_h;
//@property (nonatomic, assign) CGFloat bl_origin;
//@property (nonatomic, assign) CGFloat bl_size;
- (CGFloat)bl_x {
    return self.frame.origin.x;
}

- (void)setBl_x:(CGFloat)bl_x {
    CGRect frame = self.frame;
    frame.origin.x = bl_x;
    self.frame = frame;
}


- (CGFloat)bl_y {
    return self.frame.origin.y;
}

- (void)setBl_y:(CGFloat)bl_y {
    CGRect frame = self.frame;
    frame.origin.y = bl_y;
    self.frame = frame;
}


- (CGFloat)bl_w {
    return self.frame.size.width;
}

- (void)setBl_w:(CGFloat)bl_w {
    CGRect frame = self.frame;
    frame.size.width = bl_w;
    self.frame = frame;
}


- (CGFloat)bl_h {
    return self.frame.size.height;
}

- (void)setBl_h:(CGFloat)bl_h {
    CGRect frame = self.frame;
    frame.size.width = bl_h;
    self.frame = frame;
}


- (CGPoint)bl_origin {
    return self.frame.origin;
}

- (void)setBl_origin:(CGPoint)bl_origin {
    CGRect frame = self.frame;
    frame.origin = bl_origin;
    self.frame = frame;
}


- (CGSize)bl_size {
    return self.frame.size;
}

- (void)setBl_size:(CGSize)bl_size {
    CGRect frame = self.frame;
    frame.size = bl_size;
    self.frame = frame;
}

@end
